package de.joergviola.mobj.shared;

import java.io.Serializable;

public interface Entity<T extends Serializable> {

	String getEntityName();

	String[] getFieldnames();

	Object getId(T t);

	void getValues(T t, EntityWriter writer) throws UnknownEntityException;

	T getObject(EntityReader reader) throws ObjectNotFoundException,
			UnknownEntityException;
}
